package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 委托合同表 base_contract
 *
 * @author ruoyi
 * @date 2018-12-24
 */
public class Contract extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private String contractNumber;

    private Integer contractId;
    /**
     * 工程名称
     */
    private String name;
    /**
     * 委托单位
     */
    private String entrusting;
    /**
     * 委托单位账号
     */
    private String entrustingAccount;
    /**
     * 收款账户
     */
    private String collection;
    /**
     * 录入时间
     */
    private Date createTime;
    /**
     * 录入时间
     */
    private Date endTime;
    /**
     * 结算方式
     */
    private String payType;

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setEntrusting(String entrusting) {
        this.entrusting = entrusting;
    }

    public String getEntrusting() {
        return entrusting;
    }

    public void setEntrustingAccount(String entrustingAccount) {
        this.entrustingAccount = entrustingAccount;
    }

    public String getEntrustingAccount() {
        return entrustingAccount;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

    public String getCollection() {
        return collection;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public Contract setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
        return this;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("contractId", getContractId())
                .append("contractNumber", getContractNumber())
                .append("name", getName())
                .append("entrusting", getEntrusting())
                .append("entrustingAccount", getEntrustingAccount())
                .append("collection", getCollection())
                .append("createTime", getCreateTime())
                .append("endTime", getEndTime())
                .append("payType", getPayType())
                .toString();
    }
}
